/**
 * @作者 libin
 * @创建时间 2019-12-28 08:54
 */
package com.yhl.missyou.sample;


import com.yhl.missyou.sample.hero.Diana;
import com.yhl.missyou.sample.hero.Irelia;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

@Configuration
//@Scope("prototype")
public class HeroConfiguration {
//    @Bean
    public ISkill diana() {
        return new Diana("Diana", 18);
    }

    @Bean
    @Scope("prototype")
    public ISkill irelia() {
        return new Irelia();
    }

}

